package com.itheima.edu.info.manager.day12;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class ScannreTest {
    public static void main(String[] args) throws IOException {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入用户名");
        String s=sc.next();
        System.out.println("请输入密码");
        String s1=sc.next();
        FileWriter fileWriter=new FileWriter("D://jinjie//实验//e.txt");
        fileWriter.write("用户名：");
        fileWriter.write(s);
        fileWriter.flush();
        fileWriter.write("\r\n");
        fileWriter.write("密   码：");
        fileWriter.write(s1);
        fileWriter.close();

    }
}
